﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom.Compiler;

namespace CodeSet.Reflection.Samples
{
    class CodeDom
    {
        string strCode = @"
                            using system;
                            namespace CodeSet.Reflection.Samples
                            {
                                public class CodeDomTest
                                {
                                    private string _name;
                                    public CodeDomTest(name)
                                    {
                                        this._name = name;
                                    }
        
                                    public string NotifyMyName()
                                    {
                                        Console.WriteLine(this._name);
                                    }
                                }
                            }
                            ";

        public void CompileMyCode()
        {
            CodeDomProvider cdProvider = CodeDomProvider.CreateProvider("CSharp");
            ICodeCompiler cp = cdProvider.CreateCompiler();

            CompilerParameters cpParam = new CompilerParameters();

            //cp.CompileAssemblyFromDom(
            //cp.
        }


    }
}
